<template>
  <div class="contact_us">
    <div class="info_chang_search">
      <div class="tabs">当前位置：<span @click="$router.push({name: 'home'})">首页</span>>联系我们</div>
      <search-box></search-box>
    </div>
    <div class="contact_us_content">
      <div class="title">联系我们</div>
      <div class="content_info">
        <div class="conten_txt" v-html="contactInfo"></div>
      </div>
    </div>
  </div>
</template>

<script>
import SearchBox from "@/components/searchBox";
import {contactus} from "@/api/apis";
export default {
name: "contactUs",
  components: {SearchBox},
  data(){
    return{
      contactInfo:''
    }
  },
  methods:{
    Getcontact(){
      contactus().then(res=>{
        this.contactInfo = res.data.text
      })
    }
  },
  mounted() {
    this.Getcontact()
  }
}
</script>

<style scoped lang="less">
.contact_us {
  width: 1200px;
  margin: 0 auto;
  padding: 11px 0 51px;
  min-height: calc(100vh - 62px);

  .info_chang_search {
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    .tabs {
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #000000;
    }
  }

  .contact_us_content{
    margin-top: 30px;
    .title{
      font-size: 16px;
      font-family: Microsoft YaHei;
      font-weight: bold;
      color: #000000;
      padding-bottom: 20px;
      border-bottom: 1px solid #000000;
    }
    .content_info{
      margin-top: 30px;
      .conten_txt{
        font-size: 14px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        line-height: 24px;
        color: #000000;
        /deep/ img{
          max-width: 100%;
          height: auto;
        }
      }
    }
  }
}
</style>
